module.exports = {
  devServer: {
    port: 8888,
    host: "0.0.0.0",
    https: false,
    open: true,
    // proxy: {
    //   "/dev-api": {
    //     target: "http://localhost:8001",
    //     changeOrigin: true,
    //     pathRewrite: {
    //       "^/dev-api": ""
    //     }
    //   }
    // },
    proxy: {
      [process.env.VUE_APP_BASE_API]: {
        target: process.env.VUE_APP_SERVICE_URL,
        changeOrigin: true,
        pathRewrite: {
          ["^" + process.env.VUE_APP_BASE_API]: ""
        }
      }
    }
  },
  lintOnSave: false,
  productionSourceMap: false
};
